#ifndef __TIMER_H__
#define __TIMER_H__

#include "drv_common.h"

enum timer_num {TIMER_NUM1 = 0, TIMER_NUM2, TIMER_NUM3, TIMER_NUM4, TIMER_NUM5, TIMER_NUM6, TIMER_NUM7, TIMER_NUM8};

extern void insert_timer_data_buf(struct data_buf *node, enum timer_num port);
extern int remove_timer_data_buf(struct data_buf *node, enum timer_num port);

extern void timer2_init(unsigned short arr, unsigned short psc);

extern __inline void timer2_enable(void);
extern __inline void timer2_disable(void);
extern __inline void timer2_reload(void);

#endif /* __TIMER_H__ */
